package test;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Reg {
	public static void main(String[] args){
		String str = "D:\\VideoSE_videos\\ku6\\mjv4P4F0sfFG4DytHBxIzQ.f4v_img\\mjv4P4F0sfFG4DytHBxIzQ-0010.jpeg";
		Pattern pattern = Pattern.compile("(\\d*)\\.jpeg$");
		Matcher match = pattern.matcher(str);
		//System.out.println(match.find());
		match.find();
		System.out.println(match.group(1));
		
		System.out.println(String.format("%04d", 12)); 
	}

}
